import { createApp } from 'vue'
import '@/style.css'
import App from '@/App.vue'
// 挂载router路由
import router from '@/router'
// 挂载pinia状态管理
import store from '@/store'
// 公共scss
import '@/style.css'
import { createDiscreteApi } from 'naive-ui'
const app = createApp(App)
app.use(router).use(store)

const { message, notification, dialog, loadingBar } = createDiscreteApi(['message', 'notification', 'loadingBar', 'dialog'])

window.$message = message
window.$notification = notification
window.$dialog = dialog
window.$loadingBar = loadingBar

export default app
